#include <iostream>
#include "ostream"
#include "string"


class Person13 {

public:
    int age;
    std::string name;

public:
    Person13(int age, std::string name) : age(age), name(name) {

    }

    // 重载==
    bool operator==(Person13 &p) {
        if (this->age == p.age) {
            return true;
        }
        return false;
    }
};


void test01() {
    Person13 p1(18, "张三1");
    Person13 p2(18, "张三2");
    Person13 p3(18, "张三3");

    if (p1 == p2) {
        std::cout << "相等" << std::endl;
    }
}


int main() {
    test01();
    return 0;
}

